package com.example;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainMenu extends Activity{
	@Override
    protected void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main_menu_layout);
          
          Button play_button=(Button) findViewById(R.id.play_button);
          play_button.setOnClickListener(new View.OnClickListener(){
        	  @Override
        	  public void onClick(View v){
        		  startGame();
        	  }
          });
          
          Button exit_button=(Button) findViewById(R.id.exit_button);
          exit_button.setOnClickListener(new View.OnClickListener(){
        	  @Override
        	  public void onClick(View v){
        		  finish();
        	  }
          });
    }

	protected void startGame() {
		Intent intent=new Intent(this,Game.class);
			startActivity(intent);
	} 
	
}
